import json
import elu.mail.model as mailModel
from elu.base.handler import BaseHandler

class MailHandler(BaseHandler):
    def get(self):
        self.render("mail/show.html")


class MailAPIHandler(BaseHandler):
    def get(self):
        table = mailModel.MailModel()
        results = table.r()
        self.write(json.dumps(results))
